<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="test"></div>
    <script src="./js/react.development.js"></script>
    <script src="./js/react-dom.development.js"></script>
    <script src="./js/babel.min.js"></script>
    <script type="text/babel">
        const VDOM = <h1>hello,React</h1>;
        console.log(VDOM)
        ReactDOM.render(VDOM,document.getElementById("test"))
        /*
            1.虚拟DOM本质就是一个object对象
            2.虚拟DOM属性比真实DOM少很多，虚拟DOM是在react内部在使用，无需真实DOM上的那么多属性
            3.虚拟DOM最终会被React转化为真实DOM，呈现在界面上
        */ 
    </script>
</body>
</html>